package com.example.dormitory_system.mapper;

import com.example.dormitory_system.domain.enetiy.Room;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.dormitory_system.domain.vo.sysuser.RoomListVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author keenan
* @description 针对表【tb_room(寝室表)】的数据库操作Mapper
* @createDate 2025-03-26 15:31:07
* @Entity com.example.dormitory_system.domain.enetiy.Room
*/
public interface RoomMapper extends BaseMapper<Room> {

    @Select("select * from tb_room where building_id = #{buildingId}")
    List<RoomListVO> selectListRoom(Long buildingId);

} 